package com.hrd.service.maintenance;

import com.hrd.service.BaseService;

public interface DepartmentService extends BaseService {

    /**
     * 获取部门列表
     *
     * @return
     */
    /*ServiceResult<JSONArray> getRecordList(AdminMenuBean form);


    *//**
     * 获取部门列表
     *
     * @return
     *//*
    ServiceResult<JSONArray> getRecordListWithUserCnt(AdminMenuBean form);
    
    *//**
     * 获取部门
     *
     * @param param
     * @return
     *//*
    ServiceResult<List<ExtDepartmentModel>> selectDepartment(ExtDepartmentModel param);

    *//**
     * 获取单个部门
     *
     * @return
     *//*
    ServiceResult<ExtDepartmentModel> getRecord(String id);

    *//**
     * 根据主键判断部门数据是否存在
     *
     * @return
     *//*
    ServiceResult<Integer> isExistsRecord(String menuId, String menuName);

    *//**
     * 部门插入
     *
     * @param record
     *//*
    ServiceResult<CMDepartment> insertRecord(LoginUserInfo userInfo, ExtDepartmentModel record) throws Exception;

    *//**
     * 部门更新
     *
     * @param record
     *//*
    ServiceResult<CMDepartment> updateRecord(LoginUserInfo userInfo, ExtDepartmentModel record) throws Exception;

    *//**
     * 获取部门的子菜单
     *
     * @param departmentCd
     * @return
     *//*
    ServiceResult<List<String>> getAllChildDepartment(String departmentCd);


    *//**
     * 获取用户所在的部门
     *
     * @param userId
     * @return
     *//*
    ServiceResult<List<CMDepartmentUser>> getDepartmentListByUserId(String userId);

    *//**
     * 获取登录用户所管辖的部门
     *
     * @return
     *//*
    public ServiceResult<List<String>> getLoginUserDepartmentList();
    
    *//**
     * 获取所有的分公司列表
     *
     * @return
     *//*
    List<CMDepartment> getBranchDepartmentList();
    
    *//**
     * 根据已知的部门ID获取该部门以及所有父级的列表数据,排序由低级部门向高级部门排序
     * @param new List, departmentCd
     * @return
     *//*
    List<CMDepartment> getDepartmentParentsList(List<CMDepartment> departmentList, String departmentCd);*/
}
